package com.lichuandi.controller;

import com.lichuandi.annotation.DoneTime;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * AOP例子
 */
@RestController
public class AopController {
    @GetMapping("/test3")
    @DoneTime(param = "TestController")
    public String test1(){
        System.out.println("方法1执行");
        return "hello springboot2";
    }

    @GetMapping("/test4")
    public String test2(){
        System.out.println("方法2执行");
        return "hello springboot2";
    }
}
